#ifndef _system_h_
#define _system_h_
#include <ny8.h>
#include "ny8_constant.h"
#include "stdint.h"
#include"NY8B062D_constant.h"
#include"ny8b062d.h"
#include "display_6seg.h"
#define bit7 	(1<<7)
#define bit6 	(1<<6)
#define bit5 	(1<<5)
#define bit4 	(1<<4)
#define bit3 	(1<<3)
#define bit2 	(1<<2)
#define bit1 	(1<<1)
#define bit0 	(1<<0)//这里的括号相当之重要
#define bitclr	0x00
#define bitset 0xFF
typedef  struct
{
     uint8_t b0        : 1;
     uint8_t b1        : 1;
     uint8_t b2        : 1;
     uint8_t b3        : 1;
     uint8_t b4        : 1;        	
     uint8_t b5        : 1; 
     uint8_t b6        : 1;       	
     uint8_t b7        : 1;        	
} bitn;
extern volatile bitn    Flag3;
#define f_adc_timing        Flag3.b3
#endif